<template>
	<view>
		<!-- 加载动画组件 -->
		<j-loading />
		<!-- 自定义导航 -->
		<view v-if="navbarShow">
			<u-navbar
				:fixed="true"
				:title="title"
				:bgColor="bgColor"
				:leftIcon="leftIcon"
				:placeholder="true"
				:autoBack="true"
			/>
		</view>
		<!-- 登录模态框 -->
		<j-login />
	</view>
</template>

<script>
import jLoading  from "@/components/loading"
import jLogin from "@/components/login"


export default {
	components:{ jLoading, jLogin },
	props:{
		navbarShow: {
			type: Boolean,
			default: true
		},
		title: {
			type: String,
			default: '首页'
		},
		leftIcon: {
			type: String,
			default: null
		},
		bgColor: {
			type: String,
			default: '#ffffff'
		}
	},
	data() {
		return {}
	},
	methods:{
	}
}
</script>
<style lang="scss" scoped>
</style>
